<?php
namespace app\api\validate;

use think\Validate;

class Nft extends Validate
{
	protected $rule =   [
        // 用户充值订单
        'name' => 'require',
        'file'       => 'require',
        'credit_type'       => 'require',
        'characteristic'       => 'require',
        'content'       => 'require',
        'voucher'       => 'require',
        'address'       => 'require',
	];
    
    protected $message  =   [
        // 用户充值订单
        'name.require' => 'NFT名称必填',
        'file.require' => 'NFT文件必传',
        'credit_type.require' => '币种必选',
        'characteristic.require' => '特性必填',
        'content.require' => '描述必填',
        'voucher.require' => '凭证必传',
        'address.require' => '链上地址必传',
    ];
    protected $scene = [
    	'add'		=> ['name','file','credit_type','characteristic','content','voucher'],    	
        'export'		=> ['credit_type','address'],    	
    ];

}